package com.zhanghu.builder;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 10:33 2020/1/17
 * @modified by:
 */
public class ComputerBuilder extends AbstractBuilder {
    private Computer computer;

    public ComputerBuilder(Computer computer) {
        this.computer = computer;
    }
    @Override
    public void buildScreen() {
        computer.setScreen("aa");
    }

    @Override
    public void buildMouse() {

        computer.setMouse("bb");
    }

    @Override
    public void buildKeyboard() {
        computer.setKeyboard("cc");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
